package csel.controller.commands;

import csel.controller.bindings.Bindable;
import csel.model.GameCommand;
import csel.view.GameViewport;

public class BMChangeControlsCommand implements GameCommand
{
	
	private GameViewport gameViewport;
	private Bindable bindable;
		
	public BMChangeControlsCommand(GameViewport gameViewport, Bindable bindable){
		this.gameViewport = gameViewport;
		this.bindable = bindable;
	}

	public void execute()
	{
		gameViewport.accept(new ChangeControlsCommand());
	}
	
	private class ChangeControlsCommand implements GameCommand{
		public void execute(){
			gameViewport.showControlDialog(bindable);
		}
	}
}
